package picturesender;

import com.gooddies.events.Lookup;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JPanel;

/**
 * @author sad
 */
public class ColorSelector extends JPanel {

    public ColorSelector() {
        setPreferredSize(new Dimension(20, 20));
        addMouseListener(new MouseAdapter() {

            @Override
            public void mouseClicked(MouseEvent e) {
                Lookup.getDefault().fire(Color.class, getBackground());
            }
        });
    }
}
